
#include <bits/stdc++.h>
using namespace std;

int main(){
	int a;
	cin >> a;
	if(a % 5 == 0 || (a % 3 == 0 && a < 21)){
		if (a % 5 == 0 && (a % 3 == 0 && a < 21)){
			cout << "NO" << endl;	
		}
		else{
			cout << "YES" << endl;
			}
											}
			
	else{
		cout << "NO" << endl;
		} 
	return 0;
}
